#define	_CRT_SECURE_NO_WARNINGS 1 

#include "Heap.h"

int main()
{
	Heap HP;
	HeapCreate(&HP);
	HPDataType arr[10] = { 8, 5, 4, 9, 2, 3, 7, 6, 1, 9 };
	for (int i = 0; i < sizeof(arr) / sizeof(arr[0]); i++)
	{
		HeapPush(&HP, arr[i]);
	}
	while (HeapEmpty(&HP) == false)
	{
		printf("%d ", HeapTop(&HP));
		HeapPop(&HP);
	}
	return 0;
}